package com.xnyzc.lhy.common.component.controller.common;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.common.penum.EErrorCode;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: scootXin
 * @Date: 2018/12/14 16:53
 */
@Api(description = "错误提示接口")
@RestController
@RequestMapping("/health")
public class HealthController {
    @ResponseBody
    @RequestMapping(value = "/check")
    public Rv check() {
        return Rv.wrap(EErrorCode.success, System.currentTimeMillis());
    }
}
